#include <gtk/gtk.h>
 
void quit ()
{
    gtk_exit (0);
}

int main (int argc, char *argv[])
{
    GtkBuilder      *builder;
    GtkWidget       *window;
 
    gtk_init (&argc, &argv);
 
    builder = gtk_builder_new ();
    gtk_builder_add_from_file (builder, "glade.glade", NULL);

    window = GTK_WIDGET (gtk_builder_get_object (builder, "window1"));
    gtk_builder_connect_signals (builder, NULL);
    
    gtk_signal_connect (GTK_OBJECT (window), "destroy",
                GTK_SIGNAL_FUNC (quit), NULL);
    
    g_object_unref (G_OBJECT (builder));
        
    gtk_widget_show_all(window);                
    gtk_main ();
 
    return 0;
}